package com.dreammakerteam.frameworkdemo.base.domain;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * 地区
 * @author xy
 * @version 0.1
 */
@TableName("d_area")
public class DAreaDo extends Model<DAreaDo> {
    private static final long serialVersionUID = -1822727648555093864L;
    /** id */
    @TableId("da_id")
    private Long daId;
    /** 行政代码 */
    @TableField("da_code")
    private String daCode;
    /** 地区名 */
    @TableField("da_name")
    private String daName;
    /** 父地区 */
    @TableField("da_parent_id")
    private Long daParentId;
    /** 首字母 */
    @TableField("da_first_letter")
    private String daFirstLetter;
    /** 城市等级(0:省,1:市,2:县) */
    @TableField("da_level")
    private Integer daLevel;

	@Override
	protected Serializable pkVal() {
		return this.daId;
	}

    public Long getDaId() {
        return daId;
    }

    public DAreaDo setDaId(Long daId) {
        this.daId = daId;
        return this;
    }

    public String getDaName() {
        return daName;
    }

    public DAreaDo setDaName(String daName) {
        this.daName = daName;
        return this;
    }

    public Long getDaParentId() {
        return daParentId;
    }

    public DAreaDo setDaParentId(Long daParentId) {
        this.daParentId = daParentId;
        return this;
    }

    public String getDaCode() {
        return daCode;
    }

    public DAreaDo setDaCode(String daCode) {
        this.daCode = daCode;
        return this;
    }

    public String getDaFirstLetter() {
        return daFirstLetter;
    }

    public DAreaDo setDaFirstLetter(String daFirstLetter) {
        this.daFirstLetter = daFirstLetter;
        return this;
    }

    public Integer getDaLevel() {
        return daLevel;
    }

    public DAreaDo setDaLevel(Integer daLevel) {
        this.daLevel = daLevel;
        return this;
    }

    @Override
    public String toString() {
        return "DAreaDo{" +
                "daId=" + daId +
                ", daCode='" + daCode + '\'' +
                ", daName='" + daName + '\'' +
                ", daParentId=" + daParentId +
                ", daFirstLetter='" + daFirstLetter + '\'' +
                ", daLevel=" + daLevel +
                '}';
    }
}
